package com.thon.entity.util;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * @file IdEntity.java
 * @author manpiaoyi
 * @email manpiaoyi@126.com
 * @date 2014-10-18
 * @description 实体主键策略
 */
@MappedSuperclass
public abstract class IdEntity implements Serializable {


	private static final long serialVersionUID = 476976293630242032L;
	protected Integer id;

	public IdEntity() {
	}

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
